import Vue from 'vue'
import App from './App.vue'
import router from './router'
Vue.config.productionTip = false
router.beforeEach((to, form, next) => {
  if (Vue.cancels) {
    Vue.cancels.map(cancel => {
      cancel()
    })
    Vue.cancels = []
  }
  next()
})
new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
